'use strict';

const { Service } = require('egg');
class RouterService extends Service {
    async deleteFile(path) {
        const fs = require('fs');
        const pathFile = this.config.baseDir + '/app/' + path;
        if (fs.existsSync(pathFile)) {
            fs.unlinkSync(pathFile);
        }
        return true
    }
}

module.exports = RouterService;
